HiI have Catalina OS and Xcode 11.1 when creating new project I see the types iOS, macOS, tvOS and watchOS so shouldnt I seeipadOS as well or im missing something ?Kindest Regards
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
Every time I run my App in Xcode the below debugging window opens and I need to close it every time as I don't need it, how to disable this behavior in Xcode ? I want to open it manually when needed.
Kindest Regards
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi,
In this year WWDC 2024 conference a new update to SwiftData allows it to connect to other kind of data sources or databases, at ;east this is what I understood, since then didn't see any tutorial or help document on how to do that for example connecting SwiftData to Firebase if possible ?
Kind Regards
Hi,
Im trying to customize the button that appear when swiping a for each list for deleting trying to show a red circle and a white trash icon inside it, but instead I get a white empty button ?
.swipeActions(edge: .trailing) {
Button {
deletePatient(patient: patient)
} label: {
ZStack {
Circle()
.fill(Color.red)
.frame(width: 50, height: 50)
Image(systemName: "trash")
.foregroundColor(.white)
}
}
.tint(.white)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Hi
Im copying the Apple tutorial project for lists and navigation for SWiftUI but Im getting an error although my code is same as Apple project, can some one check please.
Error
"Cannot find 'landmarks' in scope"
Kindest Regards
import SwiftUI
struct LandmarkRow: View {
var landmark: Landmark
var body: some View {
HStack {
Text(landmark.name)
}
}
}
struct LandmarkRow_Previews: PreviewProvider {
static var previews: some View {
LandmarkRow(landmark: landmarks[0])
}
}
import Foundation
import SwiftUI
import CoreLocation
struct Landmark: Hashable, Codable {
var id: Int
var name: String
var park: String
var state: String
var description: String
private var imageName: String
var image: Image {
Image(imageName)
}
private var coordinates: Coordinates
var locationCoordinate: CLLocationCoordinate2D {
CLLocationCoordinate2D (
latitude: coordinates.latitude,
longitude: coordinates.longitude)
}
struct Coordinates: Hashable, Codable {
var latitude: Double
var longitude: Double
}
}
Hi
Theres colors to use in SwiftUI when developing iOS App such as first line, but when I try to use the other system color placeholderText I get the error "Type Color? has no member placeholderText" why ?
Text("Hello, World!").foregroundColor(.quaternaryLabel)
Hi
my MacBook Pro stopped updating at Big Sur although it’s not old it’s 2015. So to use the new SwiftUI features isn’t enough to upgrade to Xcode 14 or it won’t install on my machine ?
Kindest Regards
Hi,
Is there math functions in Swift built in, such as Sin, Cos, Log etc ?
Kindest Regards
Hi,
NavigationStack is a struct so to initialize it we need to use var or let so how come we use it without this keywords ?
Kindest Regards
Hi.
I see a # symbol allot in swift documentation, as in definition below what it means ?
Kindest Regards
import <#module#>
Hi,
When creating a 3 columns Split View in SwiftUI the second view that resemble the mails list in Apple Mails App have a blue icon at top left corner where when tapped shows the column of Mail boxes such as Inbox, Sent etc.
This icon by default when creating the Split View disappears after tapping, it shows the third column and disappear , I would like it to stay so I can show and collapse the first column sam as Apple Mail App. how to do that ? its called back also how to rename it and add icon to it ?
Hi,
when declaring variables or constants inside a Struct in SwiftUI projects is it by default private or internal ?
seems little confusing cause I see some using the private word explicitly sometimes.
Kindest Regards
Hi,
How can I customize the Back Button in Column 2 "Content" in SplitView, like changing its color, label, icon ? Also is it possible to keep it visible even when Column 1 is shown and make it work like toggling showing and hiding Column 1 ?
Kindest Regards
Hi
How can we add multi view to NavigationPath in one go like in code below maybe using something like path.append(mobiles.all) ? where all 3 views of mobiles Array get added at once ?
Kindest Regards
`struct NavigationPathView: View {
var mobiles: [Mobiles] = [.init (name: "iPhone", imageName: "folder", color: .mint),
.init (name: "Samsung", imageName: "pin", color: .pink),
.init (name: "Mac Pro", imageName: "book", color: .gray)]
@State var path = NavigationPath()
var body: some View {
NavigationStack (path: $path) {
List {
Section ("Platforms") {
Button("Go To Platform") {
path.append(mobiles.first!)
}
Button("Go To Mobile") {
path.append(mobiles.last!)
}
Button("Add All Mobiles") {
}
}
}
}
.navigationDestination(for: Mobiles.self) {mobile in
ZStack {
mobile.color.ignoresSafeArea()
VStack {
Image(systemName: mobile.imageName)
Label (mobile.name, systemImage: mobile.imageName)
.font(.largeTitle).bold().foregroundColor(.white)
Button("Go Home") {
path.removeLast(path.count)
}
}
}
}
}
}
Hi,
I added local source control for a project and I want to remove it how to do that ? disabling source control from Xcode settings will hide source control from other projects which I don't want, just removing this specific project from source control and deleting the repository .
Kindest Regards